package com.suixun.dao.credits;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.suixun.entity.credits.CreditTaskArchive;
import com.suixun.entity.credits.CreditTaskArchiveExample;

/**
 * 积分档案
 * 
 * @author yh
 * @date 2017年11月15日
 */
public interface CreditTaskArchiveMapper {

    int countByExample(CreditTaskArchiveExample example);

    int deleteByExample(CreditTaskArchiveExample example);

    int deleteByPrimaryKey(Integer id);

    /**
     * 新增
     * 
     * @param record
     * @return
     */
    int insert(CreditTaskArchive record);

    int insertSelective(CreditTaskArchive record);

    List<CreditTaskArchive> selectByExample(CreditTaskArchiveExample example);

    CreditTaskArchive selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") CreditTaskArchive record, @Param("example") CreditTaskArchiveExample example);

    int updateByExample(@Param("record") CreditTaskArchive record, @Param("example") CreditTaskArchiveExample example);

    /**
     * 通过id动态修改记录
     * 
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(CreditTaskArchive record);

    int updateByPrimaryKey(CreditTaskArchive record);
}